package com.connetion;

import java.sql.DriverManager;

import com.mysql.jdbc.Connection;

public class ConnectionLink {
	public static Connection getMysqlConn() {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			Connection conn = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/supermarket?useSSL=false&serverTimezone=UTC","root","liuke551816");
		    return  conn;
		}
		catch(Exception e) {
			e.printStackTrace();
			return null;
		}
	}
	

}
